
//
//  rootViewController.m
//  Food choices
//
//  Created by xalo on 16/2/27.
//  Copyright © 2016年 张广斌. All rights reserved.
//

#import "rootViewController.h"

@interface rootViewController ()

@end

@implementation rootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [NSThread sleepForTimeInterval:1.5];
    
    //homePage导航控制器
    UINavigationController *homePageNC = [[UIStoryboard storyboardWithName:@"HomePageSB" bundle:nil] instantiateViewControllerWithIdentifier:@"HomePageNC"];
    
    //shake导航控制器
    UINavigationController *shakeNC = [[UIStoryboard storyboardWithName:@"ShakeSB" bundle:nil] instantiateViewControllerWithIdentifier:@"ShakeNC"];
    
    //user导航控制器
    UINavigationController *userNC = [[UIStoryboard storyboardWithName:@"UserSB" bundle:nil] instantiateViewControllerWithIdentifier:@"UserNC"];

    
    //cookList tabBarItem Image
    UIImage *cookImage = [UIImage imageNamed:@"cookList"] ;
    [homePageNC.tabBarItem setImage:cookImage];
    [homePageNC.tabBarItem setTitle:@"美食"];
    
    //category tabBarItem Image
    UIImage *categoryImage = [UIImage imageNamed:@"find"] ;
    [shakeNC.tabBarItem setImage:categoryImage];
    [shakeNC.tabBarItem setTitle:@"摇一摇"];
    
    //user tabBarItem Image
    UIImage *userImage = [UIImage imageNamed:@"owner"];
    [userNC.tabBarItem setImage:userImage];
    [userNC.tabBarItem setTitle:@"我的"];
    
    
    //标签视图控制器添加视图
    self.viewControllers = @[homePageNC,shakeNC,userNC];
    
    //tabBar透明度
    self.tabBar.translucent = NO;
    
    self.tabBar.tintColor = [UIColor colorWithRed:1.000 green:0.562 blue:0.045 alpha:1.000];

    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
